package org.neframework.webtest.util.config;

import org.neframework.webtest.service.SystemService;

import com.tmsps.neframework.core.utils.ChkTools;

public class Config {

	private static SystemService systemService = new SystemService();

	public int ALERT_DAY = 0;
	public String DATA_PATH = null;

//	public String DB_DUMP = null;
//	public String DB_RESTORE = null;
//	public String DB_IP = null;
//	public String DB_NAME = null;
//	public String DB_UNAME = null;
//	public String DB_PWD = null;

	private Config() {
		ALERT_DAY = ChkTools.getInteger(systemService.get("ALERT_DAY"));
		DATA_PATH = systemService.get("DATA_PATH");

//		DB_DUMP = systemService.get("DB_DUMP");
//		DB_RESTORE = systemService.get("DB_RESTORE");
//		DB_IP = systemService.get("DB_IP");
//		DB_NAME = systemService.get("DB_NAME");
//		DB_UNAME = systemService.get("DB_UNAME");
//		DB_PWD = systemService.get("DB_PWD");
	}

	public static Config getConfig() {
		return new Config();
	}

}
